import { createApi } from '../configs/ajax'
import { mockURL, /* baseURL, */ path } from '../configs/config'

const prefix = 'usercenter'

const option = { baseURL: mockURL }

export const login = createApi(`${path}/${prefix}/login`, option) // 登陆
export const logout = createApi(`${path}/${prefix}/logout`, option) // 登出

export const loginByTicket = createApi(`${path}/${prefix}/loginByTicket`, option) // 通过ticket登陆
export const loginByKey = createApi(`${path}/service/pagerservice/checkKey`, option) // 通过key进入项目
export const isLogin = (a, b, c) => console.log(a, b, c)
export const menu = createApi(`${path}/${prefix}/user/userMenu`, option) // 获取菜单
export const staff = createApi(`${path}/${prefix}/user/userInfo`, option) // 用户信息
